__CreateJSPath = function (js) {
    var scripts = document.getElementsByTagName("script");
    var path = "";
    for (var i = 0, l = scripts.length; i < l; i++) {
        var src = scripts[i].src;
        if (src.indexOf(js) != -1) {
            var ss = src.split(js);
            path = ss[0];
            break;
        }
    }
    var href = location.href;
    href = href.split("#")[0];
    href = href.split("?")[0];
    var ss = href.split("/");
    ss.length = ss.length - 1;
    href = ss.join("/");
    if (path.indexOf("https:") == -1 && path.indexOf("http:") == -1 && path.indexOf("file:") == -1 && path.indexOf("\/") != 0) {
        path = href + "/" + path;
    }
    return path;
};
__CreatePath = function (js, level) {
    var scripts = document.getElementsByTagName("script");
    var path = "";
    for (var i = 0, l = scripts.length; i < l; i++) {
        var src = scripts[i].src;
        if (src.indexOf(js) != -1) {
            var ss = src.split(js);
            path = ss[0];

            ss = path.split("/");
            ss.length = ss.length - level;
            path = ss.join("/");

            break;
        }
    }
    var href = location.href;
    href = href.split("#")[0];
    href = href.split("?")[0];
    var ss = href.split("/");
    ss.length = ss.length - 1;
    href = ss.join("/");
    if (path.indexOf("https:") == -1 && path.indexOf("http:") == -1 && path.indexOf("file:") == -1 && path.indexOf("\/") != 0) {
        path = href + "/" + path;
    }
    return path;
};
var bootPATH = __CreateJSPath("boot.js");
var BASE_PATH = __CreatePath("boot.js", 3);
var RESOURCES_PATH = BASE_PATH + '/yxkj';
var now = new Date().getTime();
console.log("bootPATH:", bootPATH);
console.log("BASE_PATH:", BASE_PATH);
console.log("RESOURCES_PATH:", RESOURCES_PATH);
//style
document.write("<link rel='shortcut icon' href='" + BASE_PATH + "/favicon.ico'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/bootstrap.min.css'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/iconfont.css'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/swiper-bundle.css'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/animate.min.css'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/style.css'>");
document.write("<link rel='stylesheet' type='text/css' href='" + BASE_PATH + "/yxkj/css/solution.css'>"); 
//javascript
document.write("   <!--[if lt IE 9]>");
document.write("     <script src='" + BASE_PATH + "/yxkj/js/respond.min.js'></script>");
document.write("     <script src='" + BASE_PATH + "/yxkj/js/excanvas.min.js'></script>");
document.write("    <![endif]-->"); 
document.write("<script src='" + BASE_PATH + "/yxkj/js/jquery-1.8.3.min.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/jquery.superslide.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/swiper-bundle.min.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/swiper.animate.min.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/wow.min.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/main.js' type='text/javascript'></script>");
document.write("<script src='" + BASE_PATH + "/yxkj/js/luomingui.js' type='text/javascript'></script>"); 




window.console = window.console || (function () {
    var c = {};
    c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile = c.clear = c.exception = c.trace = c.assert = function () {
    };
    return c;
})();